respond unsuitably

Translations
отвечать неуместно
The student responded unsuitably to the teacher's question.
Ученик неуместно ответил на вопрос учителя.